package com.bryant.demo05.ui.home

import com.bryant.demo05.base.BaseView
import com.bryant.demo05.bean.ChangeCityBean
import com.qweather.sdk.response.weather.WeatherHourlyResponse
import com.qweather.sdk.response.weather.WeatherNowResponse

interface HomeView:BaseView {
    // 1. 获取当前天气成功
    fun getCurrentWeatherSuccess(response: WeatherNowResponse)
    // 2. 获取当前天气失败
    fun getCurrentWeatherFailed(message: String)
    // 3. 获取逐小时天气数据成功
    fun getHourlyWeatherDataSuccess(response: WeatherHourlyResponse)
    // 4. 获取逐小时天气数据失败
    fun getHourlyWeatherDataFailure(errorResponse: String)

    // 5. 获取城市列表成功
    fun refreshCityList(cityList: MutableList<ChangeCityBean>)

}